﻿using Ken_WPF_UI.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ken_WPF_UI.Common
{
   public class DataUtil
    {

        /// <summary>
        /// 获取list
        /// </summary>
        /// <returns></returns>
        public static List<ClassInfo> GetMyList(bool needHead =true)
        {
            List<ClassInfo> list = new List<ClassInfo>();

            if (needHead)
            {
                list.Add(new ClassInfo() { Code = "", Name = "请选择" });
            }
            
            list.Add(new ClassInfo() { Code = "1001", Name = "高一1班" });
            list.Add(new ClassInfo() { Code = "1002", Name = "高一2班" });
            list.Add(new ClassInfo() { Code = "1003", Name = "高一3班" });
            list.Add(new ClassInfo() { Code = "2001", Name = "高二1班" });
            list.Add(new ClassInfo() { Code = "2002", Name = "高二2班" });
            return list;
        }


    }
}
